<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OsinfoDevice: Libosinfo Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="Libosinfo Reference Manual">
<link rel="up" href="ch01.html" title="Libosinfo">
<link rel="prev" href="OsinfoDeploymentList.html" title="OsinfoDeploymentList">
<link rel="next" href="OsinfoDeviceList.html" title="OsinfoDeviceList">
<meta name="generator" content="GTK-Doc V1.29 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#OsinfoDevice.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#OsinfoDevice.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="OsinfoDeploymentList.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="OsinfoDeviceList.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="OsinfoDevice"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="OsinfoDevice.top_of_page"></a>OsinfoDevice</span></h2>
<p>OsinfoDevice — A hardware device</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="OsinfoDevice.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="returnvalue">OsinfoDevice</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDevice.html#osinfo-device-new" title="osinfo_device_new ()">osinfo_device_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDevice.html#osinfo-device-get-vendor" title="osinfo_device_get_vendor ()">osinfo_device_get_vendor</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDevice.html#osinfo-device-get-vendor-id" title="osinfo_device_get_vendor_id ()">osinfo_device_get_vendor_id</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDevice.html#osinfo-device-get-product" title="osinfo_device_get_product ()">osinfo_device_get_product</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDevice.html#osinfo-device-get-product-id" title="osinfo_device_get_product_id ()">osinfo_device_get_product_id</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDevice.html#osinfo-device-get-bus-type" title="osinfo_device_get_bus_type ()">osinfo_device_get_bus_type</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDevice.html#osinfo-device-get-class" title="osinfo_device_get_class ()">osinfo_device_get_class</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDevice.html#osinfo-device-get-name" title="osinfo_device_get_name ()">osinfo_device_get_name</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDevice.html#osinfo-device-get-subsystem" title="osinfo_device_get_subsystem ()">osinfo_device_get_subsystem</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="OsinfoDevice.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoDevice.html#OSINFO-DEVICE-PROP-VENDOR:CAPS" title="OSINFO_DEVICE_PROP_VENDOR">OSINFO_DEVICE_PROP_VENDOR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoDevice.html#OSINFO-DEVICE-PROP-VENDOR-ID:CAPS" title="OSINFO_DEVICE_PROP_VENDOR_ID">OSINFO_DEVICE_PROP_VENDOR_ID</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoDevice.html#OSINFO-DEVICE-PROP-PRODUCT:CAPS" title="OSINFO_DEVICE_PROP_PRODUCT">OSINFO_DEVICE_PROP_PRODUCT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoDevice.html#OSINFO-DEVICE-PROP-PRODUCT-ID:CAPS" title="OSINFO_DEVICE_PROP_PRODUCT_ID">OSINFO_DEVICE_PROP_PRODUCT_ID</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoDevice.html#OSINFO-DEVICE-PROP-NAME:CAPS" title="OSINFO_DEVICE_PROP_NAME">OSINFO_DEVICE_PROP_NAME</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoDevice.html#OSINFO-DEVICE-PROP-CLASS:CAPS" title="OSINFO_DEVICE_PROP_CLASS">OSINFO_DEVICE_PROP_CLASS</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoDevice.html#OSINFO-DEVICE-PROP-BUS-TYPE:CAPS" title="OSINFO_DEVICE_PROP_BUS_TYPE">OSINFO_DEVICE_PROP_BUS_TYPE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoDevice.html#OSINFO-DEVICE-PROP-SUBSYSTEM:CAPS" title="OSINFO_DEVICE_PROP_SUBSYSTEM">OSINFO_DEVICE_PROP_SUBSYSTEM</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="OsinfoDevice.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
    <span class="lineart">╰──</span> <a class="link" href="OsinfoEntity.html" title="OsinfoEntity">OsinfoEntity</a>
        <span class="lineart">╰──</span> OsinfoDevice
</pre>
</div>
<div class="refsect1">
<a name="OsinfoDevice.description"></a><h2>Description</h2>
<p><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> is an entity representing some kind of hardware
device. Devices can be associated with operating systems
and platforms.</p>
</div>
<div class="refsect1">
<a name="OsinfoDevice.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="osinfo-device-new"></a><h3>osinfo_device_new ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="returnvalue">OsinfoDevice</span></a> *
osinfo_device_new (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-device-get-vendor"></a><h3>osinfo_device_get_vendor ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
osinfo_device_get_vendor (<em class="parameter"><code><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> *dev</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-device-get-vendor-id"></a><h3>osinfo_device_get_vendor_id ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
osinfo_device_get_vendor_id (<em class="parameter"><code><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> *dev</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-device-get-product"></a><h3>osinfo_device_get_product ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
osinfo_device_get_product (<em class="parameter"><code><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> *dev</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-device-get-product-id"></a><h3>osinfo_device_get_product_id ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
osinfo_device_get_product_id (<em class="parameter"><code><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> *dev</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-device-get-bus-type"></a><h3>osinfo_device_get_bus_type ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
osinfo_device_get_bus_type (<em class="parameter"><code><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> *dev</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-device-get-class"></a><h3>osinfo_device_get_class ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
osinfo_device_get_class (<em class="parameter"><code><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> *dev</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-device-get-name"></a><h3>osinfo_device_get_name ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
osinfo_device_get_name (<em class="parameter"><code><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> *dev</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-device-get-subsystem"></a><h3>osinfo_device_get_subsystem ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
osinfo_device_get_subsystem (<em class="parameter"><code><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> *dev</code></em>);</pre>
</div>
</div>
<div class="refsect1">
<a name="OsinfoDevice.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="OSINFO-DEVICE-PROP-VENDOR:CAPS"></a><h3>OSINFO_DEVICE_PROP_VENDOR</h3>
<pre class="programlisting">#define OSINFO_DEVICE_PROP_VENDOR     "vendor"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-DEVICE-PROP-VENDOR-ID:CAPS"></a><h3>OSINFO_DEVICE_PROP_VENDOR_ID</h3>
<pre class="programlisting">#define OSINFO_DEVICE_PROP_VENDOR_ID  "vendor-id"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-DEVICE-PROP-PRODUCT:CAPS"></a><h3>OSINFO_DEVICE_PROP_PRODUCT</h3>
<pre class="programlisting">#define OSINFO_DEVICE_PROP_PRODUCT    "product"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-DEVICE-PROP-PRODUCT-ID:CAPS"></a><h3>OSINFO_DEVICE_PROP_PRODUCT_ID</h3>
<pre class="programlisting">#define OSINFO_DEVICE_PROP_PRODUCT_ID "product-id"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-DEVICE-PROP-NAME:CAPS"></a><h3>OSINFO_DEVICE_PROP_NAME</h3>
<pre class="programlisting">#define OSINFO_DEVICE_PROP_NAME       "name"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-DEVICE-PROP-CLASS:CAPS"></a><h3>OSINFO_DEVICE_PROP_CLASS</h3>
<pre class="programlisting">#define OSINFO_DEVICE_PROP_CLASS      "class"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-DEVICE-PROP-BUS-TYPE:CAPS"></a><h3>OSINFO_DEVICE_PROP_BUS_TYPE</h3>
<pre class="programlisting">#define OSINFO_DEVICE_PROP_BUS_TYPE   "bus-type"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-DEVICE-PROP-SUBSYSTEM:CAPS"></a><h3>OSINFO_DEVICE_PROP_SUBSYSTEM</h3>
<pre class="programlisting">#define OSINFO_DEVICE_PROP_SUBSYSTEM  "subsystem"
</pre>
</div>
</div>
<div class="refsect1">
<a name="OsinfoDevice.see-also"></a><h2>See Also</h2>
<p><a class="link" href="OsinfoInstallScript.html#OsinfoOs"><span class="type">OsinfoOs</span></a>, <a class="link" href="OsinfoPlatform.html" title="OsinfoPlatform"><span class="type">OsinfoPlatform</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.29</div>
</body>
</html>